package com.project.zsxd.server.login.controller;

import com.alibaba.fastjson.JSONObject;
import com.project.zsxd.server.annotation.LoginPass;
import com.project.zsxd.server.common.bean.Result;
import com.project.zsxd.server.common.exception.SystemException;
import com.project.zsxd.server.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    private IUserService userService;

//    @LoginPass
//    @RequestMapping("/register/wx")
//    public Result registerWx(@RequestBody JSONObject requestJson) throws SystemException {
//        return Result.success(userService.checkAndRegister(requestJson));
//    }

}
